/*
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-image: url('../img/ba5.jpg');
    background-size: cover;
    background-position: center;
}

#app {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 600px;
}

h1, h2 {
    margin-bottom: 20px;
    color: #333;
}

#article {
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

textarea {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    height: 100px;
}

button {
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #0056b3;
}

#comment-response {
    margin-top: 10px;
    color: red;
}

#comments > div {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

#comments p {
    margin: 0 0 5px;
}

#comments small {
    color: #666;
}

button[onclick] {
    background-color: #6c757d;
    margin-top: 20px;
}

button[onclick]:hover {
    background-color: #5a6268;
}

p img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}*/
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* 修改为顶部对齐 */
    min-height: 100vh; /* 修改为最小高度 */
    background-image: url('../img/ba5.jpg');
    background-size: cover;
    background-position: center;
    overflow: auto; /* 确保body可以滚动 */
}

#app {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 600px;
    max-height: 100vh; /* 限制高度 */
    overflow-y: auto; /* 允许纵向滚动 */
}

h1, h2 {
    margin-bottom: 20px;
    color: #333;
}

#article {
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

textarea {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    height: 100px;
}

button {
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #0056b3;
}

#comment-response {
    margin-top: 10px;
    color: red;
}

#comments > div {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

#comments p {
    margin: 0 0 5px;
}

#comments small {
    color: #666;
}

button[onclick] {
    background-color: #6c757d;
    margin-top: 20px;
}

button[onclick]:hover {
    background-color: #5a6268;
}

p img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
